#include "FoGGEDEF.h"
#include "GVMImplement.h"
#include "GVContainer.h"

namespace _FOGGE_
{
	namespace _GDB_
	{
		GVMImplement::GVMImplement(void)
		{
		}

		GVMImplement::~GVMImplement(void)
		{
			ClearAllVariable();
		}

		GVContainer* GVMImplement::FindGVContainer(::_FO_UTIL::Name name)
		{
			GVCMapIter iter = m_GVCMap.begin();
			;

			iter =m_GVCMap.find(name);

			if(iter==m_GVCMap.end())
			{
				return NULL;
			}
			else
			{
				return iter->second;
			}
		}
		bool GVMImplement::RegisterGeneralVariableContainer(GVContainer* gvc,::_FO_UTIL::Name name)
		{

			return m_GVCMap.insert(GVCMapValueType(name,gvc)).second;
		}
	}
}